package com.classloader;

/**
 *
 * 功能描述: classlOADER测试。
 *
 * @param:
 * @return:
 * @auther: csh
 * @date: 2021/12/21 10:05 下午
 */
public class UserTest {
    public static void main(String[] args) {
        User user = new User(); //隐式加载

        try {
            Class clazz = Class.forName("com.classloader.User"); //显式加载
            ClassLoader.getSystemClassLoader().loadClass("com.classloader.User");//显式加载
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

    }
}
